class Chomper extends GuaAnimation {
    static new(game) {
        let p = new this(game, animationChomper)
        p.setup()
        return p
    }

    setup() {
        // row表示在草地的第几排
        this.row = -1
        this.cooldown = 5
        this.score = 150
        this.ready = false
    }

    remove() {
        // if (this.ready) {
            this.scene.removeChomper(this)
        // }
    }

    cracked() {
        this.changeAnimation('digest')
        this.ready = true
    }

    update() {
        super.update()
    }
}